
<style lang="scss" scoped>
.pro-item {
  width: 92%;
  height: 170px;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  padding: 15px;
  margin: 0 auto;
  margin-bottom: .3rem;
  border-radius: .15rem;
  box-shadow: 0 0 18px rgba(0,0,0,.1);
  > img {
    width: 140px;
    height: 140px;
    display: block;
    margin-right: 10px;
  }
  .pro-item__box {
    padding: 10px 0;
    width: 100%;
    height: auto;
    position: relative;
    img {
      height: 13px;
      display: block;
    }
    p {
      font-size: .34rem;
      margin-top: 4px;
      color: #888;
      margin-bottom: .1rem;
    }
    .pro-cart {
      width: 100%;
      height: 26px;
      position: absolute;
      bottom: 0.4rem;
      left: 0;
      right: 0;
      span {
        font-size: 18px;
        font-weight: bold;
      }
      span.wrap::before {
        content: "";
        width: 20px;
        height: 20px;
        display: inline-block;
        background: url("/static/ethel_img/order_icon_integral.png") center
          center no-repeat;
        background-size: 100% 100%;
        vertical-align: middle
      }
      button {
        outline: none;
        border: none;
        width: 80px;
        display: inline-block;
        position: absolute;
        right: 0px;
        height: 100%;
        line-height: .5rem;
        text-align: center;
        bottom: -.4rem;
        // &::after {
        //   content: "";
        //   display: block;
        //   width: 12px;
        //   height: 100%;
        //   top: 0;
        //   right: 0;
        //   position: absolute;
        //   background: url("/static/ethel_img/home_icon_arrow@2x.png") center
        //     center no-repeat;
        //   background-size: 50% 50%;
        // }
      }
    }
  }
  .diamond {
    width: 22px !important;
    height: 20px !important;
    display: inline-block !important;
  }
  .selling_price {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    text-decoration: line-through;
  }
}
.is_postage{
  margin-top: .1rem;
  display: block;
}
.item-title{
  font-size: .42rem;
  font-weight: 600;
}
.theme-color{
  color: #151413 !important;
}
.pro-item .pro-item__box .is_postage img{
  width: .8rem;
  height: auto;
}
.item-tag{
  position: absolute;
  top: 0;
  left: 0;
  background: url("/static/ethel_img/home_label_gift@2x.png") no-repeat;
  background-size: 100% 100%;
  width: 2.2rem;
  height: .52rem;
  line-height: .5rem;
  z-index: 9;
  color: #8B5D1B;
  font-size: .3rem;
  padding-left: .42rem;
  font-weight: 600;
}
.goods-item{
  .info{
    margin: .3rem 0;
    .tag{

      background: linear-gradient(#4FE1BF, #38D6EB);
      color: #fff;
      font-size: .26rem;
      vertical-align: middle;
      margin-top: -.1rem;
      display: inline-block;
      padding: .05rem .1rem;
    }
    .price{
      font-size: .48rem;
      color: #333333;
      margin-left: .15rem;
    }
  }
  .old-price{
    text-decoration: line-through;
    color: #555;
  }

}
.pro-item .pro-item__box .buycar{
  position: absolute;
  width: .9rem;
  height: .9rem;
  right: 0;
  bottom: 0;
  img{
    height: .9rem;
  }
}
</style>

<template>
  <li class="pro-item flex-display goods-item" @click="fnOpenProDetail(item.id)">
    <img :src="item.photo">
    <div class="flex-num-one pro-item__box">
      <div class="item-title">
        {{ item.nickname }}
      </div>
      <div class="info">
        <span class="tag">
          巨优惠
        </span>
        <span class="price">
          ￥{{ item.discount_price }}
        </span>
      </div>
      <div class="old-price">
        ￥{{ item.selling_price }}
      </div>
      <div class="buycar">
        <img class="max" src="/static/new/ymx/home_icon_shopping@2x.png">
      </div>
    </div>
  </li>
</template>
<script>
export default {
  props: {
    item: {
      required: true,
      type: Object,
      default: {}
    }
  },
  created() {},
  methods: {

  }
};
</script>
